1
2
3
4 package org.apache.hadoop.hbase.protobuf.generated;
5
6 public final class TracingProtos {
7 private TracingProtos() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface RPCTInfoOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14
15
16
17
18 boolean hasTraceId();
19
20
21
22 long getTraceId();
23
24
25
26
27
28 boolean hasParentId();
29
30
31
32 long getParentId();
33 }
34
35
36
37
38
39
40
41
42
43
44
45 public static final class RPCTInfo extends
46 com.google.protobuf.GeneratedMessage
47 implements RPCTInfoOrBuilder {
48
49 private RPCTInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
50 super(builder);
51 this.unknownFields = builder.getUnknownFields();
52 }
53 private RPCTInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
54
55 private static final RPCTInfo defaultInstance;
56 public static RPCTInfo getDefaultInstance() {
57 return defaultInstance;
58 }
59
60 public RPCTInfo getDefaultInstanceForType() {
61 return defaultInstance;
62 }
63
64 private final com.google.protobuf.UnknownFieldSet unknownFields;
65 @java.lang.Override
66 public final com.google.protobuf.UnknownFieldSet
67 getUnknownFields() {
68 return this.unknownFields;
69 }
70 private RPCTInfo(
71 com.google.protobuf.CodedInputStream input,
72 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
73 throws com.google.protobuf.InvalidProtocolBufferException {
74 initFields();
75 int mutable_bitField0_ = 0;
76 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
77 com.google.protobuf.UnknownFieldSet.newBuilder();
78 try {
79 boolean done = false;
80 while (!done) {
81 int tag = input.readTag();
82 switch (tag) {
83 case 0:
84 done = true;
85 break;
86 default: {
87 if (!parseUnknownField(input, unknownFields,
88 extensionRegistry, tag)) {
89 done = true;
90 }
91 break;
92 }
93 case 8: {
94 bitField0_ |= 0x00000001;
95 traceId_ = input.readInt64();
96 break;
97 }
98 case 16: {
99 bitField0_ |= 0x00000002;
100 parentId_ = input.readInt64();
101 break;
102 }
103 }
104 }
105 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
106 throw e.setUnfinishedMessage(this);
107 } catch (java.io.IOException e) {
108 throw new com.google.protobuf.InvalidProtocolBufferException(
109 e.getMessage()).setUnfinishedMessage(this);
110 } finally {
111 this.unknownFields = unknownFields.build();
112 makeExtensionsImmutable();
113 }
114 }
115 public static final com.google.protobuf.Descriptors.Descriptor
116 getDescriptor() {
117 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.internal_static_RPCTInfo_descriptor;
118 }
119
120 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
121 internalGetFieldAccessorTable() {
122 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.internal_static_RPCTInfo_fieldAccessorTable
123 .ensureFieldAccessorsInitialized(
124 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.class, org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.Builder.class);
125 }
126
127 public static com.google.protobuf.Parser<RPCTInfo> PARSER =
128 new com.google.protobuf.AbstractParser<RPCTInfo>() {
129 public RPCTInfo parsePartialFrom(
130 com.google.protobuf.CodedInputStream input,
131 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
132 throws com.google.protobuf.InvalidProtocolBufferException {
133 return new RPCTInfo(input, extensionRegistry);
134 }
135 };
136
137 @java.lang.Override
138 public com.google.protobuf.Parser<RPCTInfo> getParserForType() {
139 return PARSER;
140 }
141
142 private int bitField0_;
143
144 public static final int TRACE_ID_FIELD_NUMBER = 1;
145 private long traceId_;
146
147
148
149 public boolean hasTraceId() {
150 return ((bitField0_ & 0x00000001) == 0x00000001);
151 }
152
153
154
155 public long getTraceId() {
156 return traceId_;
157 }
158
159
160 public static final int PARENT_ID_FIELD_NUMBER = 2;
161 private long parentId_;
162
163
164
165 public boolean hasParentId() {
166 return ((bitField0_ & 0x00000002) == 0x00000002);
167 }
168
169
170
171 public long getParentId() {
172 return parentId_;
173 }
174
175 private void initFields() {
176 traceId_ = 0L;
177 parentId_ = 0L;
178 }
179 private byte memoizedIsInitialized = -1;
180 public final boolean isInitialized() {
181 byte isInitialized = memoizedIsInitialized;
182 if (isInitialized != -1) return isInitialized == 1;
183
184 memoizedIsInitialized = 1;
185 return true;
186 }
187
188 public void writeTo(com.google.protobuf.CodedOutputStream output)
189 throws java.io.IOException {
190 getSerializedSize();
191 if (((bitField0_ & 0x00000001) == 0x00000001)) {
192 output.writeInt64(1, traceId_);
193 }
194 if (((bitField0_ & 0x00000002) == 0x00000002)) {
195 output.writeInt64(2, parentId_);
196 }
197 getUnknownFields().writeTo(output);
198 }
199
200 private int memoizedSerializedSize = -1;
201 public int getSerializedSize() {
202 int size = memoizedSerializedSize;
203 if (size != -1) return size;
204
205 size = 0;
206 if (((bitField0_ & 0x00000001) == 0x00000001)) {
207 size += com.google.protobuf.CodedOutputStream
208 .computeInt64Size(1, traceId_);
209 }
210 if (((bitField0_ & 0x00000002) == 0x00000002)) {
211 size += com.google.protobuf.CodedOutputStream
212 .computeInt64Size(2, parentId_);
213 }
214 size += getUnknownFields().getSerializedSize();
215 memoizedSerializedSize = size;
216 return size;
217 }
218
219 private static final long serialVersionUID = 0L;
220 @java.lang.Override
221 protected java.lang.Object writeReplace()
222 throws java.io.ObjectStreamException {
223 return super.writeReplace();
224 }
225
226 @java.lang.Override
227 public boolean equals(final java.lang.Object obj) {
228 if (obj == this) {
229 return true;
230 }
231 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo)) {
232 return super.equals(obj);
233 }
234 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo other = (org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo) obj;
235
236 boolean result = true;
237 result = result && (hasTraceId() == other.hasTraceId());
238 if (hasTraceId()) {
239 result = result && (getTraceId()
240 == other.getTraceId());
241 }
242 result = result && (hasParentId() == other.hasParentId());
243 if (hasParentId()) {
244 result = result && (getParentId()
245 == other.getParentId());
246 }
247 result = result &&
248 getUnknownFields().equals(other.getUnknownFields());
249 return result;
250 }
251
252 private int memoizedHashCode = 0;
253 @java.lang.Override
254 public int hashCode() {
255 if (memoizedHashCode != 0) {
256 return memoizedHashCode;
257 }
258 int hash = 41;
259 hash = (19 * hash) + getDescriptorForType().hashCode();
260 if (hasTraceId()) {
261 hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
262 hash = (53 * hash) + hashLong(getTraceId());
263 }
264 if (hasParentId()) {
265 hash = (37 * hash) + PARENT_ID_FIELD_NUMBER;
266 hash = (53 * hash) + hashLong(getParentId());
267 }
268 hash = (29 * hash) + getUnknownFields().hashCode();
269 memoizedHashCode = hash;
270 return hash;
271 }
272
273 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
274 com.google.protobuf.ByteString data)
275 throws com.google.protobuf.InvalidProtocolBufferException {
276 return PARSER.parseFrom(data);
277 }
278 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
279 com.google.protobuf.ByteString data,
280 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
281 throws com.google.protobuf.InvalidProtocolBufferException {
282 return PARSER.parseFrom(data, extensionRegistry);
283 }
284 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(byte[] data)
285 throws com.google.protobuf.InvalidProtocolBufferException {
286 return PARSER.parseFrom(data);
287 }
288 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
289 byte[] data,
290 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291 throws com.google.protobuf.InvalidProtocolBufferException {
292 return PARSER.parseFrom(data, extensionRegistry);
293 }
294 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(java.io.InputStream input)
295 throws java.io.IOException {
296 return PARSER.parseFrom(input);
297 }
298 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
299 java.io.InputStream input,
300 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
301 throws java.io.IOException {
302 return PARSER.parseFrom(input, extensionRegistry);
303 }
304 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseDelimitedFrom(java.io.InputStream input)
305 throws java.io.IOException {
306 return PARSER.parseDelimitedFrom(input);
307 }
308 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseDelimitedFrom(
309 java.io.InputStream input,
310 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
311 throws java.io.IOException {
312 return PARSER.parseDelimitedFrom(input, extensionRegistry);
313 }
314 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
315 com.google.protobuf.CodedInputStream input)
316 throws java.io.IOException {
317 return PARSER.parseFrom(input);
318 }
319 public static org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parseFrom(
320 com.google.protobuf.CodedInputStream input,
321 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
322 throws java.io.IOException {
323 return PARSER.parseFrom(input, extensionRegistry);
324 }
325
326 public static Builder newBuilder() { return Builder.create(); }
327 public Builder newBuilderForType() { return newBuilder(); }
328 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo prototype) {
329 return newBuilder().mergeFrom(prototype);
330 }
331 public Builder toBuilder() { return newBuilder(this); }
332
333 @java.lang.Override
334 protected Builder newBuilderForType(
335 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
336 Builder builder = new Builder(parent);
337 return builder;
338 }
339
340
341
342
343
344
345
346
347
348
349
350 public static final class Builder extends
351 com.google.protobuf.GeneratedMessage.Builder<Builder>
352 implements org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfoOrBuilder {
353 public static final com.google.protobuf.Descriptors.Descriptor
354 getDescriptor() {
355 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.internal_static_RPCTInfo_descriptor;
356 }
357
358 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
359 internalGetFieldAccessorTable() {
360 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.internal_static_RPCTInfo_fieldAccessorTable
361 .ensureFieldAccessorsInitialized(
362 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.class, org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.Builder.class);
363 }
364
365
366 private Builder() {
367 maybeForceBuilderInitialization();
368 }
369
370 private Builder(
371 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
372 super(parent);
373 maybeForceBuilderInitialization();
374 }
375 private void maybeForceBuilderInitialization() {
376 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
377 }
378 }
379 private static Builder create() {
380 return new Builder();
381 }
382
383 public Builder clear() {
384 super.clear();
385 traceId_ = 0L;
386 bitField0_ = (bitField0_ & ~0x00000001);
387 parentId_ = 0L;
388 bitField0_ = (bitField0_ & ~0x00000002);
389 return this;
390 }
391
392 public Builder clone() {
393 return create().mergeFrom(buildPartial());
394 }
395
396 public com.google.protobuf.Descriptors.Descriptor
397 getDescriptorForType() {
398 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.internal_static_RPCTInfo_descriptor;
399 }
400
401 public org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo getDefaultInstanceForType() {
402 return org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.getDefaultInstance();
403 }
404
405 public org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo build() {
406 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo result = buildPartial();
407 if (!result.isInitialized()) {
408 throw newUninitializedMessageException(result);
409 }
410 return result;
411 }
412
413 public org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo buildPartial() {
414 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo result = new org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo(this);
415 int from_bitField0_ = bitField0_;
416 int to_bitField0_ = 0;
417 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
418 to_bitField0_ |= 0x00000001;
419 }
420 result.traceId_ = traceId_;
421 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
422 to_bitField0_ |= 0x00000002;
423 }
424 result.parentId_ = parentId_;
425 result.bitField0_ = to_bitField0_;
426 onBuilt();
427 return result;
428 }
429
430 public Builder mergeFrom(com.google.protobuf.Message other) {
431 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo) {
432 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo)other);
433 } else {
434 super.mergeFrom(other);
435 return this;
436 }
437 }
438
439 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo other) {
440 if (other == org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo.getDefaultInstance()) return this;
441 if (other.hasTraceId()) {
442 setTraceId(other.getTraceId());
443 }
444 if (other.hasParentId()) {
445 setParentId(other.getParentId());
446 }
447 this.mergeUnknownFields(other.getUnknownFields());
448 return this;
449 }
450
451 public final boolean isInitialized() {
452 return true;
453 }
454
455 public Builder mergeFrom(
456 com.google.protobuf.CodedInputStream input,
457 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
458 throws java.io.IOException {
459 org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo parsedMessage = null;
460 try {
461 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
462 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
463 parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo) e.getUnfinishedMessage();
464 throw e;
465 } finally {
466 if (parsedMessage != null) {
467 mergeFrom(parsedMessage);
468 }
469 }
470 return this;
471 }
472 private int bitField0_;
473
474
475 private long traceId_ ;
476
477
478
479 public boolean hasTraceId() {
480 return ((bitField0_ & 0x00000001) == 0x00000001);
481 }
482
483
484
485 public long getTraceId() {
486 return traceId_;
487 }
488
489
490
491 public Builder setTraceId(long value) {
492 bitField0_ |= 0x00000001;
493 traceId_ = value;
494 onChanged();
495 return this;
496 }
497
498
499
500 public Builder clearTraceId() {
501 bitField0_ = (bitField0_ & ~0x00000001);
502 traceId_ = 0L;
503 onChanged();
504 return this;
505 }
506
507
508 private long parentId_ ;
509
510
511
512 public boolean hasParentId() {
513 return ((bitField0_ & 0x00000002) == 0x00000002);
514 }
515
516
517
518 public long getParentId() {
519 return parentId_;
520 }
521
522
523
524 public Builder setParentId(long value) {
525 bitField0_ |= 0x00000002;
526 parentId_ = value;
527 onChanged();
528 return this;
529 }
530
531
532
533 public Builder clearParentId() {
534 bitField0_ = (bitField0_ & ~0x00000002);
535 parentId_ = 0L;
536 onChanged();
537 return this;
538 }
539
540
541 }
542
543 static {
544 defaultInstance = new RPCTInfo(true);
545 defaultInstance.initFields();
546 }
547
548
549 }
550
551 private static com.google.protobuf.Descriptors.Descriptor
552 internal_static_RPCTInfo_descriptor;
553 private static
554 com.google.protobuf.GeneratedMessage.FieldAccessorTable
555 internal_static_RPCTInfo_fieldAccessorTable;
556
557 public static com.google.protobuf.Descriptors.FileDescriptor
558 getDescriptor() {
559 return descriptor;
560 }
561 private static com.google.protobuf.Descriptors.FileDescriptor
562 descriptor;
563 static {
564 java.lang.String[] descriptorData = {
565 "\n\rTracing.proto\"/\n\010RPCTInfo\022\020\n\010trace_id\030" +
566 "\001 \001(\003\022\021\n\tparent_id\030\002 \001(\003B@\n*org.apache.h" +
567 "adoop.hbase.protobuf.generatedB\rTracingP" +
568 "rotosH\001\240\001\001"
569 };
570 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
571 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
572 public com.google.protobuf.ExtensionRegistry assignDescriptors(
573 com.google.protobuf.Descriptors.FileDescriptor root) {
574 descriptor = root;
575 internal_static_RPCTInfo_descriptor =
576 getDescriptor().getMessageTypes().get(0);
577 internal_static_RPCTInfo_fieldAccessorTable = new
578 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
579 internal_static_RPCTInfo_descriptor,
580 new java.lang.String[] { "TraceId", "ParentId", });
581 return null;
582 }
583 };
584 com.google.protobuf.Descriptors.FileDescriptor
585 .internalBuildGeneratedFileFrom(descriptorData,
586 new com.google.protobuf.Descriptors.FileDescriptor[] {
587 }, assigner);
588 }
589
590
591 }